<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt" %> 
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<title><tiles:insertAttribute name="title" /></title>
<link rel="stylesheet" media="screen"
	href="<c:url value='/styles/css/transdmin.css'/>" />
<link rel="stylesheet"
	href='<c:url value="/styles/validationengine.css"/>' type="text/css" />
<script src='<c:url value="/scripts/jquery-1.5.2.min.js"/>'
	type="text/javascript"></script>
<script src='<c:url value="/scripts/jquery-validationengine.js"/>'
	type="text/javascript" charset="utf-8"></script>
<script src='<c:url value="/scripts/jquery-validation.js"/>'
	type="text/javascript" charset="utf-8" /></script>
<script
	src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"
	type="text/javascript"></script>
<link rel="stylesheet"
	href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css"
	type="text/css" media="all" />
</head>
<body>
	<div id="wrapper">
		<!-- h1 tag stays for the logo, you can use the a tag for linking the index page -->
		<h1>
			<a href="#"><span>OpenIT Tunisie</span> </a>
		</h1>
		<div align="right">
			<!-- Utilisateur :
			<sec:authentication property="principal" /> -->
		</div>
		<!-- You can name the links with lowercase, they will be transformed to uppercase by CSS, we prefered to name them with uppercase to have the same effect with disabled stylesheet -->
		<tiles:insertAttribute name="header" />
		<!-- // #end mainNav -->

		<div id="containerHolder">
			<div id="container">
				<div id="sidebar">

					<tiles:insertAttribute name="menu" />

					<!-- // .sideNav -->
					<sec:authorize ifAnyGranted="CLIENT">
						<!-- Cart -->
						<div id="cart_block" class="block exclusive">
							<div id="cart_title">
								<img src="/portail/images/Shoppingcart_32x32.png" alt="Panier" />
								<center><b><p>Panier</p></b></center>
							</div>
							<h3>Prix: <fmt:formatNumber value="${panier.total}" pattern="#0.000"/></h3>
							<h3>Liste:</h3>
							<c:forEach items="${panier.idModPaie}" var="modele">
								<h4>
									- ${modele.nom}: ${modele.prix} &nbsp;&nbsp;<a class="supp"
										href="<c:url value="/modele/rmfromcart?idm=${modele.id}"/>">supp.</a>
								</h4>
								<br>
							</c:forEach>
							<center>
								<a href="<c:url value="/client/payer"/>">Payer</a>
							</center>
							<br>
						</div>
					</sec:authorize>

				</div>
				<!-- // #sidebar -->

				<!-- h2 stays for breadcrumbs -->
				<!-- <h2><a href="#">Dashboard</a> &raquo; <a href="#" class="active">Print resources</a></h2>-->

				<div id="main">
					<tiles:insertAttribute name="main" />
				</div>
				<!-- // #main -->

				<div class="clear"></div>
			</div>
			<!-- // #container -->
		</div>
		<!-- // #containerHolder -->

		<center>
			<p id="footer">
				<br> <b> <a href="http://www.openitt.com">Copyright
						&#169; 2011 Open Information Technology Tunisia. Tous droits
						r&#233;serv&#233;s. </a> </b>
			</p>
		</center>
	</div>
</body>
</html>


